/*
 * UserNet  --  TCP/IP implementation in userspace
 * Copyright (C) 2010  Robert Millan
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef UNET_ETHER_H
#define UNET_ETHER_H

#include <stdint.h>
#include <net/ethernet.h>

#include "unet/dev.h"

static const uint8_t broadcast_mac_addr[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };

extern void unet_ethernet_incoming_packet (struct unet_device *ud, const uint8_t *packet, const uint32_t len);
extern void unet_ethernet_send_packet (int type, const uint8_t mac_addr[ETH_ALEN], struct unet_device *device,
				       const uint8_t *packet, const uint32_t len);
extern struct unet_datalink unet_ether_datalink;

#endif
